package com.huluobo.high3demo.mine.item;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;

import com.huluobo.mvvm.baen.LoveVideoBeanResult;
import com.huluobo.mvvm.viewmodel.BaseViewModel;

/**
 * Created by LC on 2023/10/6.
 */
public class WorkViewModel extends BaseViewModel<WorksRepo> {
    MutableLiveData<LoveVideoBeanResult> loveVideoSuccess = new MutableLiveData<>();

    MutableLiveData<String> loveVideoFailed = new MutableLiveData<>();

    public WorkViewModel(@NonNull Application application) {
        super(application);
    }

    public void loadLoveVideoList() {
        repo.loadLoveVideoList(loveVideoSuccess, loveVideoFailed);
    }

    @Override
    protected WorksRepo createRepo() {
        return new WorksRepo();
    }
}
